package fr.mehfile.api.connexion;

import org.apache.http.HttpException;

public class HttpConnectionException extends HttpException {


	/**
     * 
     */
    private static final long serialVersionUID = 1L;
    public static final int BAD_ROOT = 0;
	public static final int NO_TTL = 1;
	
	private int error;

	public HttpConnectionException(int statuscode) {
		super("Error code : " + statuscode);
		this.error = statuscode;
	}
	
	public int getError() {
		return error;
	}

	public HttpConnectionException(String message,int error) {
		super(message);
		this.error = error;
	}

}
